﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderManager.aspx.cs" Inherits="Card.Manager.OrderManager" %>
<%@ Import Namespace="Card.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单管理</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="TB">
            <tr>
                <td class="TD_Input_Text">
                    订单号：
                </td>
                <td class="TD_Input">
                    <asp:TextBox ID="txtOrderID" runat="server"></asp:TextBox>
                </td>
                <td class="TD_Input_Text">
                    用户账户：
                </td>
                <td class="TD_Input">
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="TD_Input_Text">
                    付款方式：
                </td>
                <td class="TD_Input">
                    <asp:DropDownList ID="dropPayment" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="TD_Input_Text">
                    订单状态：
                </td>
                <td class="TD_Input">
                    <asp:DropDownList ID="dropStatus" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">                    
                    <asp:Button ID="btnQuery" runat="server" Text="查询" onclick="btnQuery_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4" class="TD_Input">
                    <span style="float: right">显示条数：
                        <asp:TextBox ID="txtRecords" runat="server" Text="50" MaxLength="3" CssClass="Input_Short"></asp:TextBox>
                    </span>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Repeater ID="rptList" runat="server">
                        <HeaderTemplate>
                            <table class="TB">
                                <tr class="TB_Header">
                                    <td>
                                        订单号
                                    </td>
                                    <td>
                                        用户名
                                    </td>
                                    <td>
                                        金额
                                    </td>
                                    <td>
                                        状态
                                    </td>
                                    <td>
                                        提交时间
                                    </td>
                                    <td>
                                        操作
                                    </td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="TB_Item">
                                <td>
                                    <%# Eval("ORDER_ID") %>
                                </td>
                                <td>
                                    <%# Eval("USER_NAME") %>
                                </td>
                                <td>
                                    <%# Eval("TOTAL_MONEY") %>
                                </td>
                                <td>
                                    <%#  CardWebUtility.GetOrderStatusDesc(Eval("ORDER_STATUS_CODE").ToString()) %>
                                </td>
                                <td>
                                    <%# Eval("SUBMIT_DATE") %>
                                </td>
                                <td>
                                    <a href="orderdetail.aspx?oid=<%#Eval("ORDER_ID") %>">详情</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
